<template>
  <div class="login-bg">
    <div class="login-wrap">
      <img src="../assets/LogoWhite.png" alt="">
      <div class="login-img">
        <p><img class="pic" src="../assets/images/shouquan-1.png" alt=""></p>
        <h5>请先到第三平台进行授权登录</h5>
      </div>
    </div>
  </div>
</template>
<script>
import {mapActions} from 'vuex';
import {loginData,tokenData} from '../api/user/index'
export default {
  name: 'login',
  data() {
    return{
      loginForm: {
        userName: '',
        userPassword: ''
      },
      rules: {
        userName: [{ required: true, trigger: 'blur'}],
        userPassword: [{ required: true, trigger: 'blur'}]
      },
      pageUrl: ''
    }
  },
  created() {
    this.getCode()
  },
  methods: {
    getCode() {
      window.location = `${this.$baseURL}/jaccountReturn.jsp?txtAction=getCode`
    }
  }
}
</script>
<style lang="less" scoped>
.login-bg{
  width:100%;
  height: 100vh;
  padding-top: 100px;
  position: relative;
  background: url("../assets/images/login-bg.jpg");
  background-size: 100% auto;
  .login-img{
    width: 100%;
    text-align: center;
    position: relative;
    border-radius: 8px;
    .pic{
      margin: 30px 0;
      width: 180px;
    }
    .shadow{
      position: absolute;
      left: 25px;
      bottom: 10px;
      width: 600px;
      height: 30px;
      border-radius: 50px;
      background: rgba(0,0,0,0.1);
      box-shadow: 2px 2px 25px rgba(0,0,0,0.5);
    }
  }
}
  
.login-wrap{
  width: 1300px;
  padding-top: 50px;
  margin: 0 auto;
  // display: flex;
  // justify-content: space-between;
  position: relative;
  text-align: center;
  h5{
    font-size: 30px;
    color: #fff;
  }
  .login-box{
    position: relative;
    width: 380px;
    height: 450px;
    margin-top: 30px;
    margin-right: 50px;
    padding: 30px;
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    .logo{
      text-align: center;
      margin: 20px 0;
      img{
        vertical-align: middle;
      }
      p{
        color: #fff;
        font-size: 24px;
        margin-left: 10px;
      }
    }
  }
  /deep/.login {
    h4{
      font-size: 16px;
      color: #fff;
      margin: 20px 0;
    }
    .item{
      margin-bottom: 25px;
      .el-input {
        width: 100%;
        .el-input__inner{
          width: 100%;
          border: none;
          background: #ffffff;
          border-radius: 10px;
          height: 38px;
          font-size:14px;
          outline: none;
        }
      }
    }
    button{
      width: 320px;
      height: 38px;
      border-radius: 10px;
      padding: 10px 0;
      border: 1px solid #07b3d0;
      background: #07b3d0;
      color: #fff;
      line-height: 18px;
    }
  }
}
</style>